<?php
session_start();

require("includes/selectLanguage.php");
require("includes/constants.php");

if(!isset($_SESSION['idUser'])){
	Header("Location: index.html");
	exit();
}

?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title><?=$a_languages["Common.LARCTEST"];?></title>
		<style type="text/css" title="currentStyle">
			@import "js/datatables/css/demo_table_jui.css";
			@import "js/datatables/themes/smoothness/jquery-ui-1.8.4.custom.css";
			@import "css/css.css";
		</style>
		<!-- Javascript -->
        <script type="text/javascript" src="js/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery/jquery.validate.js"></script>
        <script type="text/javascript" src="js/jquery/jquery.numeric.js"></script>
        <script type="text/javascript" src="js/jquery/jquery.mask.js"></script>
		<script type="text/javascript" src="js/easySlider1.7.js"></script>
		
		<!-- Data Tables -->
		<script src="js/datatables/js/jquery.dataTables.js" type="text/javascript" ></script>
		<script src="js/datatables/js/jquery.dataTables.apis.js" type="text/javascript" ></script>
		
		<!-- JS Login -->
		<script type="text/javascript" src="js/utils.js"></script>
		<script type="text/javascript" src="js/login.js"></script>
	</head>
	
	<body>
		<div class="principal">
        	<div id="slider">
 				<ul>
 					<li><img src="images/carrera.jpg" /></li>
            		<li><img src="images/equi.jpg" /></li>
            		<li><img src="images/polo.jpg" /></li>
 				</ul>
 			</div>
		</div>
		
      	<div class="contenedora">			
          <?php include_once('layout/header.php');?>
          <div class="clear"></div>  
                
			<div class="main">
			<?php
				switch ($_REQUEST['screen']) {
					case 'measurement':
						include_once('measurement.php');
						break;
					case 'horses':
						include_once('horses.php');
						break;
					case 'reports':
						echo '<div class="blancoSistema"></div>';
						//include_once('reports.php');
						break;
					case 'users':
						include_once('users.php');
						break;
					case 'clinical':
						include_once('clinical.php');
						break;
					case 'phrases':
						include_once('phrases.php');
						break;
					default:
						include_once('measurement.php');
				}
			?>
			</div>
			<div class="clear"></div>
       </div>
       <?php include_once('layout/footer.php');?>
	</body>
	
<script type="text/javascript">
$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true, 
		continuous: true
	});
});	
</script>
</html>
